<%@ Page Language="C#" Inherits="System.Web.Mvc.ViewPage<dynamic>" %>
<%
    var user = ViewData["User"] as SimpleUser;
    var isDisplayDept = (bool) ViewData["isDisplayDept"]; %>
<%: user.Name%>
<% if (isDisplayDept)
   {%>
    (<%:user.Dept.DeptName%>)
<%
   }%>
